package goodbaby.dklt;

import android.content.Context;

/**
 * Created by Jayden on 2016/4/25 17:13.
 *
 * @version V1.0
 * @Title: GbbCache
 * @Description: ${todo}
 */
public class GbbCache {
    private static Context context;

    private static String phone_number;
    private static String pwd;
    private static byte[] ble_data;

    public static void clear() {
        phone_number = null;
        pwd = null;
    }

    public static void clearData() {
        ble_data = null;
    }

    public static void setBleData(byte[] data) {
        GbbCache.ble_data = data;
    }

    public static byte[] getBleData() {
        return ble_data;
    }

    public static String getAccount() {
        return phone_number;
    }

    public static void setAccount(String phone_number) {
        GbbCache.phone_number = phone_number;
    }

    public static Context getContext() {
        return context;
    }

    public static void setContext(Context context) {
        GbbCache.context = context.getApplicationContext();
    }

    public static String getPassword() {
        return pwd;
    }

    public static void setPassword(String password) {
        GbbCache.pwd = password;
    }
}
